package com.fivestar.pmanager.model;

import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fivestar.pmanager.core.base.BaseBean;
import com.fivestar.pmanager.core.serializer.JsonDateSerializer;

/**
 * 运营平台用户登录日志 SysLoginLogHolder
 * 
 * @author
 */
public class SysLoginLogBean extends BaseBean {

	// fields
	private Integer userId;
	private String loginId;
	@JsonSerialize(using = JsonDateSerializer.class)
	private java.util.Date loginTime;
	private String ip;
	private Integer failTimes;
	private String sessionId;

	private Date beginLogUserTime;// logUserTime 开始时间
	private Date endLogUserTime; // logUserTime 结束时间
	private String name;
	private String nickname;

	// getter,setter
	/**
	 * @return Integer
	 */
	public Integer getUserId() {
		return this.userId;
	}

	/**
	 * @return String
	 */
	public String getLoginId() {
		return this.loginId;
	}

	/**
	 * @return java.util.Date
	 */
	public java.util.Date getLoginTime() {
		return this.loginTime;
	}

	/**
	 * @return String
	 */
	public String getIp() {
		return this.ip;
	}

	/**
	 * @return Integer
	 */
	public Integer getFailTimes() {
		return this.failTimes;
	}

	/**
	 * @return String
	 */
	public String getSessionId() {
		return this.sessionId;
	}

	/**
	 * @param userId
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	/**
	 * @param loginId
	 */
	public void setLoginId(String loginId) {
		this.loginId = loginId == null ? null : loginId.trim();
	}

	/**
	 * @param loginTime
	 */
	public void setLoginTime(java.util.Date loginTime) {
		this.loginTime = loginTime;
	}

	/**
	 * @param ip
	 */
	public void setIp(String ip) {
		this.ip = ip == null ? null : ip.trim();
	}

	/**
	 * @param failTimes
	 */
	public void setFailTimes(Integer failTimes) {
		this.failTimes = failTimes;
	}

	/**
	 * @param sessionId
	 */
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId == null ? null : sessionId.trim();
	}

	public Date getBeginLogUserTime() {
		return beginLogUserTime;
	}

	public void setBeginLogUserTime(Date beginLogUserTime) {
		this.beginLogUserTime = beginLogUserTime;
	}

	public Date getEndLogUserTime() {
		return endLogUserTime;
	}

	public void setEndLogUserTime(Date endLogUserTime) {
		this.endLogUserTime = endLogUserTime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

}